<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<ul id="ul1">
    <li>111</li>
    <li>222</li>
    <li>333</li>
    <li>444</li>
</ul>
<script type="text/javascript">
//    $(document).ready(function(){
//        $('#ul1:last').append($('li').clone());
//        $('#ul1').on('click','li',function(){
//            console.log($(this).text());
//        })
//    })
    var liList=document.querySelectorAll('li');
    for(let i=0;i<liList.length;i++){
        liList[i].onclick=function(){
            console.log(i);
        }
    }
    var arr=['name','Aym','age','25']
    var arrObj={};
    for(var i=0;i<2;i++){
        var arr1=['11','22','33','44']
        arrObj[arr1[i-1]]=arr1[i];
//        console.log(len)
    }
    console.log(arrObj);
</script>
</body>
</html>